]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add the banner to the body if the notification is expandable because it has an action...
authorMarina Zhurakhinskaya <marinaz@redhat.com>
Wed, 6 Oct 2010 21:25:15 +0000 (17:25 -0400)
committerMarina Zhurakhinskaya <marinaz@redhat.com>
Wed, 6 Oct 2010 21:43:59 +0000 (17:43 -0400)
This fixes the bug when the body would be missing from the expanded notification
that has a short body that used to fit in the one-line banner and is expandable
because it has action buttons.

We always want to add the banner to the body of an expandable notification,
unless the notification has custom content. We used to only do that when
creating this._scrollArea for the content. We should also do that when creating
this._actionArea .

https://bugzilla.gnome.org/show_bug.cgi?id=631566

js/ui/messageTray.js

index aa65a155720afab446ff02cd4c1afa42456c3d18..e45bef8ad589332fcc74a1c53ccb8bd829ef5e3d 100644 (file)
@@ -309,6 +309,8 @@ Notification.prototype = {
             this._actionArea = null;
             if (this._buttonBox)
                 this._buttonBox = null;
+        } else {
+            this._addBannerBody();
         }
         this._actionArea = actor;